'use strict'
const mongoose = require('mongoose')

// 创建schema
const topic = new mongoose.Schema({
    title:{type:String,default:''},
    icon: { type: String, default: "" },
    created: { type: Number, default:new Date().getTime() },

})

//  创建model
const TopicModel = mongoose.model('topic', topic, 'topic') // newClass为创建或选中的集合

module.exports = TopicModel